-- GENERATED SPELL FOR [Human Charger] --


function spell0_21664(pUnit, Event) --@Smash,n/a--
pUnit:FullCastSpellOnTarget(37453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21664', 0, 1)
end

function spell1_21664(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(37498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21664', 20000, 1)
end

function Sorts_21664(pUnit, Event)
local choix_sorts_21664 = math.random(0, 1)
if choix_sorts_21664 == 0 then
pUnit:RegisterEvent('spell0_21664', 1, 1)
end
if choix_sorts_21664 == 1 then
pUnit:RegisterEvent('spell1_21664', 1, 1)
end
end

function mob21664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21664', math.random(1500, 3000), 1)
end

function mob21664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21664, 1, 'mob21664_Action')
RegisterUnitEvent(21664, 2, 'mob21664_Leave')
RegisterUnitEvent(21664, 3, 'mob21664_Kill')
RegisterUnitEvent(21664, 4, 'mob21664_Die')
